import request from '../utils/axios'
import { getCookie } from '../utils/token'
const cookie = getCookie('token')
export function update(data:any): Promise<any> {
  return request({
    url: '/update',
    method: 'post',
    // headers:{
    //   'Authorization': `Bearer ${cookie}`
    // },
    data
  })
}